<%@page import="java.util.ResourceBundle"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<% ResourceBundle rb=ResourceBundle.getBundle("MessageResources");  %>
<div id="warp">
	<div id="warp-inner">
		<div id="main" class="center">
			<div class="top">
				<span class="title"> <span class="word topspace"><%=rb.getString((String)request.getAttribute("tituloBloque"))%></span>
				</span>
			</div>
			<ul>
				<logic:iterate id="elemento" type="org.pictual.util.Elemento" name="bloque" property="elementos">
					<li>
						<span class="number"><bean:write name="elemento" property="numero" /></span>
						<%if(elemento.hasLinkTexto()) out.print("<a href=\""+elemento.getLinkTexto()+"\"/>"); %> 
							<%=rb.getString(elemento.getTexto())%>
						<%if(elemento.hasLinkTexto()) out.print("</a>");%>
						
						<logic:present name="elemento" property="links">
							<logic:iterate id="link" name="elemento" property="links">
								<span class="frase">
									<a href="http://<bean:write name="link"/>" target="_blank"><bean:write name="link" /></a>
								</span>
							</logic:iterate>
						</logic:present>
					</li>
				</logic:iterate>
			</ul>
			<div>
				<a href="http://www.Pictual.org"><bean:message key="goback" /></a>
			</div>
		</div>


		<div id="ad">
			<div class="ad-inner">
				<div class="ad-padd">
					<script type="text/javascript">
					<!--
						google_ad_client = "pub-4347470857342006";
						/* Why_Pictual_imagen_160x600_creado 24/09/10 */
						google_ad_slot = "8003524195";
						google_ad_width = 160;
						google_ad_height = 600;
					//-->
					</script>
					<script type="text/javascript"
						src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
						
					</script>
				</div>
			</div>
		</div>

	</div>

</div>
